package com.xb.loan.fund.dao;


import com.xb.loan.fund.dao.bean.CashCheckResult;
import com.xb.loan.util.mybatis.MyBatisRepository;

import java.util.List;
import java.util.Map;

@MyBatisRepository
public interface CashCheckResultDao {
	int insert(CashCheckResult checkResult);

	int deleteById(String checkResultId);
	
	/**
	 * 根据账期和类型删除记录
	 * @param params
	 * @return
	 */
	int deleteByAccountPeriodAndType(Map<String, Object> params);

	CashCheckResult queryCashCheckResultById(String checkResultId);

	/**
	 * 查询对账信息
	 * @param params 包含参数startDate、endDate、start、end
	 * @return
	 */
	List<CashCheckResult> queryCashCheckResult(Map<String, Object> params);
	
	/**
	 * 查询对账结果总数信息
	 * @param params 包含参数startDate、endDate
	 * @return
	 */
	int queryCashCheckResultCount(Map<String, Object> params);
}